package cn.imvc.app.models;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.imvc.app.entities.Address;
import cn.imvc.app.repositories.AddressRepository;

/**
 * 
 * @author wujx
 * @time 2016年7月16日
 *
 */
@Service
public class MemberAddressModelImpl implements MemberAddressModel {
	@Autowired
	private AddressRepository addressRepository;

	public List<Address> findByMemberId(int memberId) {
		return addressRepository.findByMemberId(memberId);
	}
	
}
